package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the sales_opportunity_tracking_log database table.
 * 
 */
@Entity
@Table(name="sales_opportunity_tracking_log")
@NamedQuery(name="SalesOpportunityTrackingLog.findAll", query="SELECT s FROM SalesOpportunityTrackingLog s")
public class SalesOpportunityTrackingLog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sotl_id")
	private Integer sotlId;

	@Temporal(TemporalType.DATE)
	@Column(name="sotl_date")
	private Date sotlDate;

	@Column(name="sotl_money")
	private BigDecimal sotlMoney;

	@Column(name="sotl_name")
	private Integer sotlName;

	@Column(name="sotl_possibility")
	private Integer sotlPossibility;

	@Column(name="sotl_stage")
	private Integer sotlStage;
	
	@Temporal(TemporalType.DATE)
	@Column(name="update_time")	
	private Date updateTime;
	
	@Column(name="notes")		
	private String notes;

	//bi-directional many-to-one association to SalesOpportunity
	@ManyToOne
	@JoinColumn(name="sal_id")
	private SalesOpportunity salesOpportunity;
	

	public SalesOpportunityTrackingLog() {
	}

	public Integer getSotlId() {
		return this.sotlId;
	}

	public void setSotlId(Integer sotlId) {
		this.sotlId = sotlId;
	}

	public Date getSotlDate() {
		return this.sotlDate;
	}

	public void setSotlDate(Date sotlDate) {
		this.sotlDate = sotlDate;
	}

	public BigDecimal getSotlMoney() {
		return this.sotlMoney;
	}

	public void setSotlMoney(BigDecimal sotlMoney) {
		this.sotlMoney = sotlMoney;
	}

	public Integer getSotlName() {
		return this.sotlName;
	}

	public void setSotlName(Integer sotlName) {
		this.sotlName = sotlName;
	}

	public Integer getSotlPossibility() {
		return this.sotlPossibility;
	}

	public void setSotlPossibility(Integer sotlPossibility) {
		this.sotlPossibility = sotlPossibility;
	}

	public Integer getSotlStage() {
		return this.sotlStage;
	}

	public void setSotlStage(Integer sotlStage) {
		this.sotlStage = sotlStage;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public SalesOpportunity getSalesOpportunity() {
		return this.salesOpportunity;
	}

	public void setSalesOpportunity(SalesOpportunity salesOpportunity) {
		this.salesOpportunity = salesOpportunity;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

}